package com.roc.steelend.service.Impl;


import com.roc.steelend.mapper.DepartmentMapper;
import com.roc.steelend.pojo.Department;
import com.roc.steelend.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class DepartmentServiceImpl  implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> findAllDepartmentData() {

        return departmentMapper.selectList(null);
    }
}
